Release 10.1A: OpenEdge Data Management:
DataServer for ORACLE
Defining the ROWID
When you create or update a schema image, the DataServer uses the following guidelines when determining how to support the
ROWIDfunction:
- If the ORACLE table has a
PROGRESS_RECIDcolumn, the DataServer selects it. This column provides the optimal support for theROWIDfunction. You cannot select an alternative to it.- If the ORACLE table does not have a
PROGRESS_RECIDcolumn, the DataServer selects a unique index on a mandatoryNUMBERcolumn with precision < 10 or undefined and a scale of 0 or undefined.- If none of the above is available, the DataServer uses the native
ROWID.The Data Dictionary allows you to select the native
Note: If you are connected to an ORACLE database and you change how theROWIDor an alternative index to support theROWIDfunction. The alternative index should be a stable one.ROWIDis supported for a table, you must reconnect to the database to avoid inconsistent row identifiers.An index that you select must be defined to meet at least these criteria:
Your application must address these additional criteria if the index definition does not meet them:
For example, your application might access an indexed column defined as a
NUMBERcolumn, but the scale might not be specified. If your application assigns only values between 1 and 214783647 to this column, it meets one of the additional criteria. Your application must ensure that the indexed column meets the other two criteria as well. If you do not meet all three criteria, you risk corrupting your database.
![]()
To select an index to support the ROWID function, in the Data Dictionary:
- Select the table from the Tables list.
- Choose the Table Properties button.
- Choose the DataServer button. If the ORACLE table contains a
PROGRESS_RECIDcolumn, the following message appears:
![]()
- If the
PROGRESS_RECIDmessage did not appear, the ROWID Choices dialog box appears:
![]()
- Choose <native ROWID> or an index to support the
ROWIDfunction. Choose OK to return to the Table Properties dialog box.- Choose OK to return to the Data Dictionary.
- If you referenced the table during the current session, you must disconnect from ORACLE, then reconnect, for the
ROWIDselection to take effect.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |